<!DOCTYPE html>
{% load staticfiles %}
{% load static %}
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <script src="{% static 'js/jquery-3.5.1.min.js' %}"></script>
    <script src="{% static 'js/bootstrap.min.js' %}"></script>
    <script src="{% static 'js/echarts.min.js' %}"></script>
    <script src="{% static 'toggle-menu/sidemenu.js' %}"></script>
    <script src="{% static 'js/bootstrap-paginator.min.js' %}"></script>
    <script src="{% static 'js/index.js' %}"></script>
    <script src="{% static 'js/util.js' %}"></script>
    <script src="{% static 'js/xlsx.core.min.js' %}"></script>
    <script src="{% static 'js/xlsx.full.min.js' %}"></script>
    <script src="{% static 'js/xlsx.min.js' %}"></script>
    <script src="{% static 'file-saver/src/FileSaver.js' %}"></script>
    <script src="{% static 'js/require.js' %}"></script>
    <link rel="shortcut icon" href="{% static 'favicon.ICO' %}" type="image/x-icon">
    <link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet" type="text/css">
    <link href="{% static 'toggle-menu/sidemenu.css' %}" rel="stylesheet" type="text/css">
    <link href="{% static 'css/style.css' %}" rel="stylesheet" type="text/css">
    <link href="{% static 'css/app.css' %}" rel="stylesheet" type="text/css">
    <script type="module">
        import {saveAs} from "/static/file-saver/src/FileSaver";
        console.log(saveAs);
    </script>
    <title>性能数据平台</title>
</head>
<body>
<aside class="app-sidebar" style="background: #3c3c3c;">
    <div id="header1">
        <div id="nav">
            <a class="label" id="mydata" onclick="getMydata()">我的数据</a>
        </div>
        <div id="nav">
            <!-- 导航栏 -->
            <label class="label">项目</label>
            <!-- 导航入口 -->
            <div>
                <ul id="navhead" class="navhead">

                </ul>
            </div>
        </div>
    </div>
</aside>
<script>
    $(function () {
        $.ajax({
            url: '/showtask',
            type: 'get',
            success: function (data) {
                data = data.split(',');
                let str = '';
                for (let i = 0; i < data.length; i++) {
                    str += " <li class=\"app-nav__item\" id='" + data[i] + "'onclick = onproject()>\n" +
                        "<a class=\"nav-link\">" + data[i] + "</a>\n" +
                        "</li>";
                }
                document.getElementById("navhead").innerHTML = str;
            }
        })
    })
</script>
{% block content %}
{% endblock content %}
<footer class="main-footer">
    <div class="text-center">
        三七游戏二部测试
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <span id="time"></span>
        &nbsp;&nbsp;
        <span id="weekday"> </span>
    </div>
</footer>
</body>
</html>